When the arrow changes position, we need to queue
an allocation to ensure that gtk_widget_allocate
actually calls our ->size_allocate vfunc.
gboolean flipped_x;
gboolean flipped_y;
GdkPopup *popup = GDK_POPUP (priv->surface);
+ GtkPositionType position;
g_clear_pointer (&priv->layout, gdk_popup_layout_unref);
priv->layout = layout;
priv->final_rect = final_rect;
+ position = priv->final_position;
+
switch (priv->position)
{
case GTK_POS_LEFT:
break;
}
+ if (priv->final_position != position)
+ gtk_widget_queue_allocate (GTK_WIDGET (popover));
+
gtk_widget_allocate (GTK_WIDGET (popover),
gdk_surface_get_width (priv->surface),
gdk_surface_get_height (priv->surface),